package com.lwt.spock.Controller;

import com.lwt.spock.pojo.Other;
import com.lwt.spock.service.OtherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lwt
 * @version 1.0
 * @Description
 * @date 2021/8/15 21:19
 */

@RestController
public class OtherController {
    @Autowired
    OtherService otherService;
    @RequestMapping(value = "/other")
    public Other getOtherById(Integer id) {
        return otherService.getOtherById(id);
    }
}
